package com.patterns.demo.observer.second.observer;

import com.patterns.demo.observer.second.WakeUpEvent;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2018/1/29
 */
public class Observer1 implements Observer {

    @Override
    public void handWakeUp(WakeUpEvent event) {

        if (event.getVoice() < 5) System.out.println("哄小孩继续睡觉");
    }
}
